package com.noyes4j.ota.domain;

import com.noyes4j.common.annotation.Excel;
import com.noyes4j.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName SysAuthorization
 * @Description: TODO
 * @Author zhaoweiqin
 * @Date 2021/1/29
 * @Version V1.0
 **/
public class SysAuthorization extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 授权表ID */
    private Long id;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long proId;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNumber;

    /** 授权数 */
    @Excel(name = "授权数")
    private String authorization;

    /** 激活数 */
    @Excel(name = "激活数")
    private String active;

    /** 客户ID */
    @Excel(name = "客户ID")
    private String customerId;

    /** 状态（0显示 1隐藏） */
    @Excel(name = "状态", readConverterExp = "0=显示,1=隐藏")
    private String visible;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProId(Long proId)
    {
        this.proId = proId;
    }

    public Long getProId()
    {
        return proId;
    }
    public void setBatchNumber(String batchNumber)
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber()
    {
        return batchNumber;
    }
    public void setAuthorization(String authorization)
    {
        this.authorization = authorization;
    }

    public String getAuthorization()
    {
        return authorization;
    }
    public void setActive(String active)
    {
        this.active = active;
    }

    public String getActive()
    {
        return active;
    }
    public void setCustomerId(String customerId)
    {
        this.customerId = customerId;
    }

    public String getCustomerId()
    {
        return customerId;
    }
    public void setVisible(String visible)
    {
        this.visible = visible;
    }

    public String getVisible()
    {
        return visible;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("proId", getProId())
                .append("batchNumber", getBatchNumber())
                .append("authorization", getAuthorization())
                .append("active", getActive())
                .append("customerId", getCustomerId())
                .append("visible", getVisible())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}